package cn.com.sina.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.com.sina.mapper.ItemsMapper;
import cn.com.sina.pojo.Items;
import cn.com.sina.service.ItemsService;

@Service
@Transactional
public class ItemsServiceImpl implements ItemsService{

	@Resource
	private ItemsMapper itemsMapper;
	
	@Override
	public void add(Items items) {
		// TODO Auto-generated method stub
		itemsMapper.add(items);
	}

	@Override
	public List<Items> find() {
		// TODO Auto-generated method stub
		return itemsMapper.find();
	}

}
